package com.guigu.dh.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.dh.common.result.Result;
import com.guigu.dh.pojo.cmn.Dict;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 数据字典 服务类
 * </p>
 *
 * @author DengHao
 * @since 2022-02-24
 */
public interface DictService extends IService<Dict> {

    List<Dict> findChildren(Long id);

    void exportData(HttpServletResponse response);

    void importData(MultipartFile file);

    Result findDictByValue(String dictCode, String value);

    Result findDictByDictCode(String dictCode);
}
